Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

435
Views
Is there with micronaut a way to have the "Spring Data JPA" repository autogenerated from an interface like in spring?

Im setting up a new micro service with micronaut and want it to access a database over jpa/hibernate.

Is there an easy way to have the "Spring Data JPA" repositories implementation to be autogenerated from the interface like with spring?

interface ExampleRepository {
    fun FindById(id: String): Example
}

Ideally i would the be able to import an ExampleRepository over DI into my service.

EDIT: Micronaut Data is in the process of being released: https://github.com/micronaut-projects/micronaut-data

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Not currently, although such a feature is planned for the future.

over 4 years ago · Santiago Trujillo Report

0

In July 2019 Micronaut authors released Predator — short for Precomputed Data Repositories — that is equivalent to Spring Data.

Quoting:

Predator uses Micronaut's ahead-of-time (AoT) compilation APIs to move the entity meta-model into your compiler and translate a finder expression like findByTitle into the appropriate SQL or JPA-QL query at compilation time. A very thin runtime layer that uses Micronaut's reflection-free compilation-time AOP then only has to execute the query and return the results.

UPDATE: The project has now been renamed to "Micronaut Data", here is the new link to the docs

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!